exports.errff = (req, res, next) => {
  res.cc = function (err, status = 1) {
    //status默认值为1表示失败的情况，
    res.send({
      status,
      message: err instanceof Error ? err.message : err,
    })
  }
  next()
}
